package com.agv.core.services.catalogosImpl;

import com.agv.core.dao.catalogos.Cxc_cfg_ttransacDAO;
import com.agv.core.dao.exception.QueryDAOException;
import com.agv.core.services.catalogos.Cxc_cfg_ttransacService;
import com.agv.core.services.exception.ServiceException;

public class Cxc_cfg_ttransacServiceImpl implements Cxc_cfg_ttransacService{
    
	private Cxc_cfg_ttransacDAO ttransacDao;
	
	
	public String getNuDocto() throws ServiceException{
	String registro;	
		try {
			// Trae el ultimo registro
			registro = ttransacDao.getNuDocto();

			// Se actualiza
			ttransacDao.updateSec_sig_fact(registro);

		} catch (QueryDAOException e) {
			throw new ServiceException(e);
		}
	return registro;	
	}


	public Cxc_cfg_ttransacDAO getTtransacDao() {
		return ttransacDao;
	}


	public void setTtransacDao(Cxc_cfg_ttransacDAO ttransacDao) {
		this.ttransacDao = ttransacDao;
	}
	

	
}

